﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace PersonaLibrary.Commands
{
    internal sealed class ShowViewModelCommand<TVm> : CommandBase
        where TVm : ViewModel.IViewModel, new()
    {
        public override bool CanExecute(object parameter)
        {
            return true;
        }

        public override void Execute(object parameter)
        {
			TVm viewMode = new TVm();
			((App)Application.Current).AddViewModel(viewMode);
        }
    }
}
